<template>
  <div class="edit_fotter_warpper">
    <a-button type="primary" @click="handleComplete">完成编辑</a-button>
  </div>
</template>
<script lang="ts">
import { ExamItem } from '@/store/design/types';
import { defineComponent } from 'vue';
import ExamStatus from '../../types/exam-status';
export default defineComponent({
  components: {},
  props: { exam: { type: ExamItem, default: new ExamItem() } },
  setup(props) {
    const handleComplete = () => {
      props.exam.status = ExamStatus.Basic;

      // console.log(props.exam.status);
    };
    return { handleComplete };
  },
});
</script>
<style lang="less" scoped>
.edit_fotter_warpper {
  padding-top: 24px;
  display: flex;
  justify-content: center;
  button {
    width: 800px;
    height: 40px;
  }
}
</style>
